import java.util.Scanner;

public class java_5{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		while(sc.hasNextInt()){
			int a=sc.nextInt();
			String b=Integer.toBinaryString(a);
			if(a!=0){
				System.out.println(32-b.length());
			}else{
				System.out.println(32);
			}
			
		}
	}
}